﻿using System.Collections.Generic;

namespace Project.Model.EF6.Base
{
    public class PageList<T>
    {
        public PageList()
        {
            Items = new List<T>();
        }

        public int TotalNum { get; set; }

        public IList<T> Items { get; set; }

        public int PageSize { get; set; }

        public int CurrentPage { get; set; }
        public int TotalPageCount => TotalNum % PageSize == 0 ? TotalNum / PageSize : TotalNum / PageSize + 1;
    }
}
